package com.example.teamwork.service;

import com.example.teamwork.informationGet.PageVO;
import com.example.teamwork.informationGet.RoleVO;
import com.example.teamwork.pojo.Role;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author  SongPeng
 * @date  2021/10/24 0:38
 * @version 1.0
 */

@Service
public interface RoleService {

    List<Long> findMenuIdsByRoleId(Long roleId);

    void authority(Long roleId, Long[] mids);

    PageVO<RoleVO> findRoleList(Integer pageNum, Integer pageSize, RoleVO roleVO);

    void add(RoleVO roleVO);

    void deleteById(Long id);

    RoleVO edit(Long id);

    void update(Long id, RoleVO roleVO);

    void updateStatus(Long id, Boolean status);
    /**
     * 查询所有的角色
     * @return
     */
    List<Role> findAll();
}
